
package com.syh.niceweibo.common.infos;

import android.os.Parcel;
import android.os.Parcelable;

public class UserInfo implements Parcelable{

    public long uid;
    public String screen_name;

    /**
     * head icon url
     */
    public String profile_image_url;


    public UserInfo() {
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    	dest.writeLong(uid);
        dest.writeString(screen_name);
        dest.writeString(profile_image_url);
    }

    public static final Parcelable.Creator<UserInfo> CREATOR = new Parcelable.Creator<UserInfo>() {
        public UserInfo createFromParcel(Parcel in) {
            return new UserInfo(in);
        }

        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };

    private UserInfo(Parcel in) {
    	uid = in.readLong();
        screen_name = in.readString();

        profile_image_url = in.readString();
        
    }
}
